package com.zjl.fyw.util;

import com.zjl.fyw.type.RCodeType;
import com.zjl.fyw.vo.R;

/**
 * @author zhoujingluo
 * @date 2021/6/14 21:33
 */
public class RUtil {
    //成功
    public static R ok(){
        R r=new R();
        r.setCode(RCodeType.成功.getCode());
        r.setMsg("OK");
        return r;
    }
    //失败
    public static R fail(){
        R r=new R();
        r.setCode(RCodeType.失败.getCode());
        r.setMsg("FAIL");
        return r;
    }
}
